<template>
  <dv-charts :option="option" />
</template>

<script>
import resize from "@/mixins/chartResize";

export default {
  props: {
    // 样式
    width: {
      type: String,
      default: "100%",
    },
    height: {
      type: String,
      default: "100%",
    },
    refName: {
      type: String,
      default: "centerRight1Chart",
    },
  },
  data() {
    return {
      chart: null,
      option: {
        title: {
          text: "",
          style: {
            fill: "#fff",
          },
        },
        series: [
          {
            type: "gauge",
            data: [{ name: "itemA", value: 60 }],
            axisLabel: {
              formatter: "{value}%",
              style: {
                fill: "#fff",
              },
            },
            axisTick: {
              style: {
                stroke: "#fff",
              },
            },
            animationCurve: "easeInOutBack",
          },
        ],
      },
    };
  },
  mixins: [resize],
  mounted() {
    this.$nextTick(() => {
      this.draw();
    });
  },
  methods: {
    draw() {},
  },
};
</script>
